<?php
include_once('common/header.php');

$intProvince = $objRequest->getParam('province', 0);
$intCateId	= $objRequest->getParam('cat', 0);
$intSubCategoryId = $objRequest->getParam('sub', 0);
$intPage = $objRequest->getParam('page', 1);
$intLimit = PLACES_LIMIT;
$intOffset = ($intPage-1)*$intLimit;
$intTotal = 0;
$objPlace = new Place();
$arrPlaces = $objPlace->getAll($intSubCategoryId, 0, $intProvince, 0, $intOffset, $intLimit, $intTotal);
$objCommon	= new Vfriend_Common();
$this->view->arrProvince	= $objCommon->getProvince();
$this->view->places	= $arrPlaces;
$this->view->intProvince = $intProvince;
$this->view->subcate = $objCommon->getCategoryById($intSubCategoryId);

$this->view->intTotal = $intTotal;
$this->view->intOffset = $intOffset;
$this->view->strUrl = Vfriend_Function::getUrl();
$this->view->intLimit = $intLimit;
		
?>
